// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import router from './router'
import store from './store'
import App from './App'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'

import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap/dist/js/bootstrap.min.js'

import 'datatables.net-bs/css/dataTables.bootstrap.css'
import 'datatables.net-bs/js/dataTables.bootstrap.js'

import './assets/zTree_v3/css/metroStyle/metroStyle.css'
import './assets/zTree_v3/js/jquery.ztree.all.min.js'

import './assets/css.css'

Vue.use(ElementUI);

Vue.config.productionTip = false;

Vue.directive('demo', {
  bind: function (el, binding, vnode) {
    el.style.color = binding.value.color;
    console.log(el);
  }
});

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: {App}
});
